add_executable(delaunaytriangulation-cpu DelaunayTriangulation.cpp Element.cpp)
add_dependencies(apps delaunaytriangulation-cpu)
target_link_libraries(delaunaytriangulation-cpu PRIVATE Galois::shmem lonestar)
install(TARGETS delaunaytriangulation-cpu DESTINATION "${CMAKE_INSTALL_BINDIR}" COMPONENT apps EXCLUDE_FROM_ALL)
add_test_scale(small1 delaunaytriangulation-cpu -meshGraph "${BASEINPUT}/reference/meshes/r10k.node")
add_test_scale(small2 delaunaytriangulation-cpu -meshGraph "${BASEINPUT}/meshes/250k.2.node" NOT_QUICK)

if(CMAKE_COMPILER_IS_GNUCC)
  target_compile_options(delaunaytriangulation-cpu PRIVATE -ffast-math)
endif()

add_executable(delaunaytriangulation-deterministic-cpu DelaunayTriangulationDet.cpp Element.cpp)
add_dependencies(apps delaunaytriangulation-deterministic-cpu)
target_link_libraries(delaunaytriangulation-deterministic-cpu PRIVATE Galois::shmem lonestar)
install(TARGETS delaunaytriangulation-deterministic-cpu DESTINATION "${CMAKE_INSTALL_BINDIR}" COMPONENT apps EXCLUDE_FROM_ALL)
add_test_scale(small1 delaunaytriangulation-deterministic-cpu -meshGraph "${BASEINPUT}/reference/meshes/r10k.node")
add_test_scale(small2 delaunaytriangulation-deterministic-cpu -meshGraph "${BASEINPUT}/meshes/250k.2.node" NOT_QUICK)

if(CMAKE_COMPILER_IS_GNUCC)
  target_compile_options(delaunaytriangulation-deterministic-cpu PRIVATE -ffast-math)
endif()
